#ifndef SETTINGHELPER_H
#define SETTINGHELPER_H

#include <QObject>
#include <QString>
#include "StructSetting.h"

class SettingHelper:public QObject
{
public:
   static SettingHelper *getSettingHelper();

   //打印设置的读写
   void printReadSetting();
   void printWriteSetting();

   //通信设置的读写
   void commuReadSetting();
   void commuWriteSetting();

   //实验室设置的读写
   void labInfoReadSetting();
   void labInfoWriteSetting();

   //日期时间设置的读写
   void dateTimeReadSetting();
   void dateTimeWriteSetting();

   //维护设置的读写
   void maintainReadSetting();
   void maintainWriteSetting();


public:
   stAssistset m_AssistSet;

   stPrintSet m_PrintSet;
   stCommuSet m_CommuSet;
   stLabInfoSet m_LabInfoSet;
   stDateTimeSet m_DateTimeSet;

   stFlagAlarmSet m_FlagAlarmSet;
   stGainSet  m_GainSet;

   stParamResearch m_ParamResearch;

   stMaintainSet m_MaintainSet;

   stMicroscopySet m_MicroscopySet;
   stDepartClinicianSet m_DepartClinicianSet;


public:
    void assistWriteSetting();
    void flagAlarmWriteSetting();
    void gainWriteSetting();

    void paramResearchWriteSetting();


private:
    SettingHelper();
    static SettingHelper *m_SettingHelper;


    void assistInitSetting();
    void assistReadSetting();

    void flagAlarmInitSetting();
    void flagAlarmReadSetting();

    void gainInitSetting();
    void gainReadSetting();


    void paramResearchInitSetting();
    void paramResearchReadSetting();

 private:
    QString m_File_Assist;
    QString m_File_FlagAlarm;
    QString AppPath;
    QString m_File_Gain;
    QString m_File_ParamResearch;

};

#endif // SETTINGHELPER_H
